const VueLoaderPlugin = require ('vue-loader/lib/plugin');

module.exports = {
  entry: {
    app: '/src/index.js',
    vendor: ['vue'],
  },
  module: {
    rules: [
      {
        test: /\.js$/,
        exclude: /(node_modules|bower_components)/,
        use: {
          loader: 'babel-loader',
          // options: {
          //   presets: ['@babel/preset-env'],
          // },
        },
      },
      {
        test: /\.vue$/,
        loader: 'vue-loader',
      },
    ],
  },
  plugins: [new VueLoaderPlugin ()],
};
